import 'package:kepu/generated/json/base/json_field.dart';
import 'package:kepu/generated/json/Common_list_by_region_entity.g.dart';
import 'dart:convert';
export 'package:kepu/generated/json/Common_list_by_region_entity.g.dart';

@JsonSerializable()
class CommonListByRegionEntity {
	late int code;
	late String msg;
	late List<CommonListByRegionData> data;

	CommonListByRegionEntity();

	factory CommonListByRegionEntity.fromJson(Map<String, dynamic> json) => $CommonListByRegionEntityFromJson(json);

	Map<String, dynamic> toJson() => $CommonListByRegionEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CommonListByRegionData {
	late int id;
	late String name;
	late String image;
	late String description;
	late String region;
	late String type;
	late bool plant;

	CommonListByRegionData();

	factory CommonListByRegionData.fromJson(Map<String, dynamic> json) => $CommonListByRegionDataFromJson(json);

	Map<String, dynamic> toJson() => $CommonListByRegionDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}